import request from '@/utils/request'
// 封装导出
export const articleList = (data) => {
  return request.get('/admin/interview/query', {
    params: data
  })
}
// 添加面试题
export const createArticle = (data) => {
  return request.post('/admin/interview/create', data
  )
}
// 删除面试题导出
export const removeArticle = (id) => {
  return request({
    method: 'DELETE',
    url: '/admin/interview/remove',
    data: { id }
  })
}
// 编辑
export const getArticleDetail = (id) => {
  return request.get('/admin/interview/show', {
    params: {
      id
    }
  })
}
// 点击确认
export const updateArticle = data => {
  return request.put('/admin/interview/update', data)
}
